<html>
<head><meta charset="utf-8"><title>macOS building now that support is in rust-lang/rust · t-compiler/arm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/index.html">t-compiler/arm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html">macOS building now that support is in rust-lang/rust</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206097129"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206097129" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Warner <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206097129">(Aug 06 2020 at 01:45)</a>:</h4>
<p>Now that the pr for initial arm mac support has landed (<a href="https://github.com/rust-lang/rust/pull/74541">https://github.com/rust-lang/rust/pull/74541</a>), what's the workflow for building the compiler? I'm on an mac arm DTK, and would like a compiler that can target the same. The instructions in <a href="https://github.com/shepmaster/rust/blob/silicon/silicon/README.md">https://github.com/shepmaster/rust/blob/silicon/silicon/README.md</a> don't seem to apply to what exists in the upstream. (in particular, the 'silicon' directory doesn't exist) Will that part be integrated at some point? Or does it exist at a different location?</p>



<a name="206129765"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206129765" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> XAMPPRocky <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206129765">(Aug 06 2020 at 11:40)</a>:</h4>
<p><span class="user-mention" data-user-id="317636">@Joshua Warner</span> I believe you should be able to build it like you were building rustc for any other platform. </p>
<p>If you run x.py install targeting arm macs what do you get?</p>
<div class="codehilite"><pre><span></span><code>DESTDIR=./build-artefact &amp;&amp; x.py install -i --stage 1 --target aarch64-apple-darwin,x86_64-apple-darwin src/librustc src/libstd
</code></pre></div>



<a name="206144561"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206144561" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206144561">(Aug 06 2020 at 14:01)</a>:</h4>
<p>As the README states:</p>
<blockquote>
<p>This section can be simplified when an appropriate target specification is added to the standard Rust <strong>bootstrapping compiler</strong>.</p>
</blockquote>
<p>That has not happened yet</p>



<a name="206144606"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206144606" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206144606">(Aug 06 2020 at 14:01)</a>:</h4>
<p>AFAIK</p>



<a name="206144855"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206144855" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206144855">(Aug 06 2020 at 14:03)</a>:</h4>
<p>The main thing is that you need the <code>aarch64-apple-darwin.json</code>file from that fork and to use it as part of building.</p>



<a name="206207095"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206207095" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Warner <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206207095">(Aug 06 2020 at 22:52)</a>:</h4>
<p>I tried <span class="user-mention" data-user-id="219696">@XAMPPRocky</span> 's suggestion and referenced the aarch64-apple-darwin.json file from <span class="user-mention" data-user-id="116155">@Jake Goulding</span> 's fork.<br>
Particularly:<br>
<code>DESTDIR=./build-artefact ./x.py install -i --stage 1 --host ./aarch64-apple-darwin.json --target aarch64-apple-darwin,x86_64-apple-darwin src/librustc src/libstd</code><br>
Unfortunately that tries to download <a href="https://static.rust-lang.org/dist/2020-07-16/rust-std-beta-aarch64-apple-darwin.tar.gz.sha256">https://static.rust-lang.org/dist/2020-07-16/rust-std-beta-aarch64-apple-darwin.tar.gz.sha256</a>, which of course 404's</p>



<a name="206207237"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206207237" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Warner <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206207237">(Aug 06 2020 at 22:54)</a>:</h4>
<p>I think for now I'll work off of <span class="user-mention" data-user-id="116155">@Jake Goulding</span> 's fork; the build there seemed to succed (I think? Haven't had time to test it yet). Anyway, that'll get me far enough to start sniffing out arm-compatibility problems in crates I depend on. <span aria-label="fingers crossed" class="emoji emoji-1f91e" role="img" title="fingers crossed">:fingers_crossed:</span></p>



<a name="206226047"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206226047" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> XAMPPRocky <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206226047">(Aug 07 2020 at 05:48)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> I thought it was backported to beta so it could be in the bootstrap compiler?</p>



<a name="206250539"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206250539" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206250539">(Aug 07 2020 at 12:26)</a>:</h4>
<p>It is planned to be backported. Can you point to something that indicates it was?</p>



<a name="206256012"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206256012" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206256012">(Aug 07 2020 at 13:24)</a>:</h4>
<p>Why are we backporting features? I don't like it</p>



<a name="206256445"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206256445" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206256445">(Aug 07 2020 at 13:28)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span> mostly to make it easier to work on fleshing out the real support -- we're just backporting the target triple file. IDK, it might be "wrong" in some sense, I guess, but I don't mind it too much</p>



<a name="206261215"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206261215" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206261215">(Aug 07 2020 at 14:11)</a>:</h4>
<p>Especially considering that the dependencies on LIBC and CC are not being back ported</p>



<a name="206261305"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206261305" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206261305">(Aug 07 2020 at 14:12)</a>:</h4>
<p>Which are what I would consider to be features. Really the target file is just configuration</p>



<a name="206261812"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206261812" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206261812">(Aug 07 2020 at 14:16)</a>:</h4>
<p>So the beta branch itself won’t be able to compile for the target.  only be able to use as the compiler for nightly</p>



<a name="206274173"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206274173" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206274173">(Aug 07 2020 at 15:53)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> so from <a href="https://github.com/rust-lang/rust/pull/74541">https://github.com/rust-lang/rust/pull/74541</a>, we're just backporting the first commit, right? not the dependency bump?</p>



<a name="206274787"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206274787" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206274787">(Aug 07 2020 at 15:58)</a>:</h4>
<p>To my knowledge, that is all that is required to make beta be able to compile nightly</p>



<a name="206274838"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206274838" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206274838">(Aug 07 2020 at 15:58)</a>:</h4>
<p>That seems like the safest thing that we could backport</p>



<a name="206274872"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/macOS%20building%20now%20that%20support%20is%20in%20rust-lang/rust/near/206274872" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/macOS.20building.20now.20that.20support.20is.20in.20rust-lang.2Frust.html#206274872">(Aug 07 2020 at 15:59)</a>:</h4>
<p>okay will do</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>